// 在窗口中创建 WebView
package main

import (
	_ "embed"
	app "gitee.com/go_888/xcgui/xcgui/app"
	edge "gitee.com/go_888/xcgui/xcgui/edge"
	window "gitee.com/go_888/xcgui/xcgui/window"
	xcc "gitee.com/go_888/xcgui/xcgui/xcc"
)

func main() {
	a := app.X创建(true)
	a.X启用自动DPI(true).X启用DPI(true)

	w := window.X创建窗口(0, 0, 1400, 900, "创建到窗口", 0, xcc.X窗口样式_默认样式)
	w.X设置边大小(1, 30, 1, 1)

	edge窗口, _ := edge.X创建(edge.X选项{})
	wv, _ := edge窗口.X创建Web视图(w.X句柄, edge.Web视图选项{
		X填充父窗口: true,
		X开发者工具:      true,
	})
	wv.X导航("https://panjiachen.github.io/vue-element-admin/#/login?redirect=%2Fexample%2Fcreate")

	w.X显示(true)
	a.X运行()
	a.X退出()
}
